@model PagedList<ask_entity>
@{
    Layout = "../Shared/_Layout_bootstrap.cshtml";
    ViewData["Title"] = "我赞过的";
    ViewBag.menu_up = "active";
}
@section header{
<style type="text/css">
    .status_1 {
        color: red;
    }
</style>
}
<div class="container">
    <div class="card-header">
        @ViewData["Title"]
    </div>
    <p></p>
    <div class="row">
        <div class="col-3">
            <div class="nav flex-column nav-pills">
                @Html.Partial("_left_menu")
            </div>
        </div>
        <div class="col-9">
            <div class="tab-content" id="v-pills-tabContent">
                <table class="table table-bordered table-hover">
                    <thead class="bg-light">
                        <tr>
                            <th>
                                @Html.DisplayNameFor(model => model.id)
                            </th>
                            <th>
                                @Html.DisplayNameFor(model => model.title)
                            </th>
                            <th>
                                @Html.DisplayNameFor(model => model.create_time)
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        @if (Model.Count() == 0)
                        {
                            <tr>
                                <td colspan="3" style="text-align: center;">
                                    <div class="layui-inline">--没有记录--</div>
                                </td>
                            </tr>
                        }
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                    @Html.DisplayFor(modelItem => item.id)
                                </td>
                                <td>
                                    <a href="/ask/details/@item.id">@item.title</a>
                                </td>
                                <td>
                                    @Html.DisplayFor(modelItem => item.create_time)
                                </td>
                            </tr>
                        }
                    </tbody>
                </table>
                <div style="text-align: center;padding: 16px 0 12px 0;">
                    <div class="layui-inline">
                        @Html.Pager(Model, new PagerOptions
                        {
                        PageIndexParameterName = "page",
                        TagName = "ul",
                        CssClass = "pagination",
                        CurrentPagerItemTemplate = "<li class=\"page-item active\"><a  class=\"page-link\" href=\"javascript:void(0);\">{0}</a></li>",
                        DisabledPagerItemTemplate = "<li class=\"page-item disabled\"><a class=\"page-link\">{0}</a></li>",
                        PagerItemTemplate = "<li class=\"page-item\">{0}</li>",
                        PagerItemCssClass = "page-link",
                        Id = "bootstrappager"
                        })
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>